package com.note.chh.notebook.Broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.note.chh.notebook.UI.enjoy.PlayMusicActivity;

/**
 * Created by caihuahui on 2018/3/11.
 * 接收通知栏消息
 */

public class NotificationBroadcast extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();//动作
//        collapseStatusBar(context);//收起通知栏
//        Intent i = new Intent(context,PlayMusicActivity.class);
//        i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);//必须添加，避免重复打开
//        if (action.equals("com.xczl.smart.notification.home")){
//            i.putExtra("flag","home");//传值
//            context.startActivity(i);
//        }
    }
}
